package com.landiao.common.weixin.bean;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;

/**
 * 微信用户信息
 *
 */
public class WxMpUser implements Serializable {

	protected Integer subscribe;
	protected String openid;
	protected String nickname;
	protected Integer sex;
	protected String language;
	protected String city;
	protected String province;
	protected String country;
	protected String headimgurl;
	protected Long subscribe_time;
	protected String unionid;



	public Integer getSubscribe() {
		return subscribe;
	}

	public void setSubscribe(Integer subscribe) {
		this.subscribe = subscribe;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getHeadimgurl() {
		return headimgurl;
	}

	public void setHeadimgurl(String headimgurl) {
		this.headimgurl = headimgurl;
	}

	public Long getSubscribe_time() {
		return subscribe_time;
	}

	public void setSubscribe_time(Long subscribe_time) {
		this.subscribe_time = subscribe_time;
	}

	public String getUnionid() {
		return unionid;
	}

	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}

	public static WxMpUser fromJson(String json) {
		return JSON.parseObject(json, WxMpUser.class);
	}

	@Override
	public String toString() {
		return "WxMpUser{" +
				"subscribe=" + subscribe +
				", openId='" + openid + '\'' +
				", nickname='" + nickname + '\'' +
				", sex='" + sex + '\'' +
				", language='" + language + '\'' +
				", city='" + city + '\'' +
				", province='" + province + '\'' +
				", country='" + country + '\'' +
				", headImgUrl='" + headimgurl + '\'' +
				", subscribeTime=" + subscribe_time +
				", unionId='" + unionid + '\'' +
				'}';
	}
}
